#pragma once


class CTabListCtrl : public CListCtrl
{
	DECLARE_DYNAMIC(CTabListCtrl)
public:
	CTabListCtrl();
	virtual ~CTabListCtrl();
	DECLARE_MESSAGE_MAP()
public:
	void set_notify(HWND hwnd_, int index_)
	{
		notify_wnd_ = hwnd_;	
		pane_index_ = index_;
	};	
private:
	int  pane_index_;
	HWND notify_wnd_;
public:
	virtual void PreSubclassWindow();
	virtual INT_PTR OnToolHitTest(CPoint point, TOOLINFO * pTI) const;
	void CellHitTest(const CPoint& pt, int& nRow, int& nCol) const;
	bool ShowToolTip(const CPoint& pt) const;
	CString GetToolTipText(int nRow, int nCol);
	BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	afx_msg BOOL OnToolNeedText(UINT id, NMHDR* pNMHDR, LRESULT* pResult);

};


